package com.ftg.learn.student.controller;

import com.ftg.learn.student.dto.StudentSc;
import com.ftg.learn.student.entity.Sc;
import com.ftg.learn.student.service.ScService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author kangjx
 * @createTime 2022/8/2
 */
@RestController
public class ScController {

    @Autowired
    ScService scService;

    @GetMapping("/showsc")
    public List<StudentSc> show(){
        return scService.showScWithStudent();
    }

}
